<h1>Comandas List</h1>

<table>
  <thead>
    <tr>
      <th>Id comanda</th>
      <th>Id user</th>
      <th>Pret final</th>
      <th>Data comanda</th>
      <th>Finalizare</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($comandas as $comanda): ?>
    <tr>
      <td><a href="<?php echo url_for('camanda/show?id_comanda='.$comanda->getIdComanda()) ?>"><?php echo $comanda->getIdComanda() ?></a></td>
      <td><?php echo $comanda->getIdUser() ?></td>
      <td><?php echo $comanda->getPretFinal() ?></td>
      <td><?php echo $comanda->getDataComanda() ?></td>
      <td><?php echo $comanda->getFinalizare() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('camanda/new') ?>">New</a>
